#include "SList.h"
void testSList()
{
	SLTNode* plist = NULL;
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPrint(plist);
	SListPushFront(&plist, 0);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);
	SLTNode* pos = SListFind(plist, 1);
	SListInsertAfter(pos, 30);
	SListPrint(plist);
	SListEraseAfter(pos);
	SListPrint(plist);
	SListInsertBefore(&plist, pos, 300);
	SListPrint(plist);
	SListDestory(&plist);
}

int main()
{
	testSList();
	return 0;
}